package util;

import java.io.Serializable;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.spi.PersistenceProvider;


public class JpaUtil implements Serializable {
    
	private static final long serialVersionUID = 1L;
	
	private static EntityManagerFactory factory;
    
    static{
        factory = Persistence.createEntityManagerFactory("CMPE473PROJECT2v3");
    }

    public static EntityManager getEntityManager(){
        return factory.createEntityManager();
    }

}
